]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Don't import Lang by default
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 27 Nov 2018 22:48:44 +0000 (23:48 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 25 Jan 2019 14:02:44 +0000 (14:02 +0000)
With arrow functions, Function.prototype.bind() and ES6 classes, the
Lang module is rarely needed nowadays.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361

js/ui/lookingGlass.js

index ce1402149831a4675aadc695ed631c04383b1804..8c5e29402006aa4ff5eebccfd26c38a1b578a905 100644 (file)
@@ -34,7 +34,6 @@ var commandHeader = 'const Clutter = imports.gi.Clutter; ' +
                     'const Meta = imports.gi.Meta; ' +
                     'const Shell = imports.gi.Shell; ' +
                     'const Main = imports.ui.main; ' +
-                    'const Lang = imports.lang; ' +
                     'const Tweener = imports.ui.tweener; ' +
                     /* Utility functions...we should probably be able to use these
                      * in the shell core code too. */